<%-- 
    Document   : action
    Created on : 19-oct-2011, 17:47:39
    Author     : Andrea
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Estadisticas</title>
    </head>
    <body>
        <h1>Estadisticas</h1>
        
        <%
        int valx = Integer.parseInt(request.getParameter("x"));
        int valy = Integer.parseInt(request.getParameter("y"));
        %>
      
        <jsp:useBean id="m" scope="page" class="Logica.Manejadora" />
        <jsp:setProperty name="m" property="valx" value="<%=valx%>" />
        <jsp:setProperty name="m" property="valy" value="<%=valy%>" />
        
        Promedio: <jsp:getProperty name="m" property="promedio" />
        Suma: <jsp:getProperty name="m" property="suma" />
        Valor Maximo: <jsp:getProperty name="m" property="mayor" />
    </body>
</html>
